package face.jx.sdk.util;

import android.app.Activity;

import face.jx.sdk.RegisterFaceActivity;

/**
 * 吉祥人脸识别SDK操作类
 */
public class JXFace {

    /**
     * 开启人脸认证
     * @param activity 上下文
     * @param maxRecoCount 最多识别次数
     * @param hasRecoCount 已经识别的次数
     * @param callBack 识别结果回调接口
     */
    public static void startFaceRecognition(Activity activity,int maxRecoCount,int hasRecoCount,IFaceResultCallBack callBack){
        if(activity == null){
            return;
        }

        RegisterFaceActivity.startActivity(activity,maxRecoCount,hasRecoCount,callBack);

    }
}
